package com.hfjyz.registration.model;

import java.io.Serializable;

/**
 * The persistent class for the seat database table.
 * 
 */
public class Admission implements Serializable {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 705143622971646304L;

	private int id;
	private int userId;
	private String code;
	private Integer examId;
	private boolean printFlg;
	private Double score;
	private Seat seat;

	public Admission(int userId, Integer examId, String code) {
		super();
		this.userId = userId;
		this.examId = examId;
		this.code = code;
	}

	public Admission() {
	}

	/**
	 * @return the userId
	 */
	public int getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code
	 *            the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the seat
	 */
	public Seat getSeat() {
		return seat;
	}

	/**
	 * @param seat
	 *            the seat to set
	 */
	public void setSeat(Seat seat) {
		this.seat = seat;
	}

	public boolean isPrintFlg() {
		return printFlg;
	}

	public void setPrintFlg(boolean printFlg) {
		this.printFlg = printFlg;
	}

	/**
	 * @return the score
	 */
	public Double getScore() {
		return score;
	}

	/**
	 * @param score
	 *            the score to set
	 */
	public void setScore(Double score) {
		this.score = score;
	}

	/**
	 * @return the examId
	 */
	public Integer getExamId() {
		return examId;
	}

	/**
	 * @param examId
	 *            the examId to set
	 */
	public void setExamId(Integer examId) {
		this.examId = examId;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
}